package com.fast.manager.base.repository;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fast.commons.repository.BaseMapper;
import com.fast.manager.base.domain.Role;

public interface RoleMapper extends BaseMapper<Role> {
	
	/**
	 * 根据角色ID集查询角色
	 * @param roleIds
	 * @return
	 */
	public List<Role> findRoleByIds(Long[] roleIds);
	
	/**
	 * 获取用户对应的角色
	 * @param user_id
	 * @return
	 */
	public List<Role> getUserRolesById(@Param("user_id") Long user_id);
	
}